-module(pt_public_class).
-include("pt.hrl").

-export([wait_player_new/0,wait_player_from_binary/1,wait_player_to_binary/1]).
-export([game_player_new/0,game_player_from_binary/1,game_player_to_binary/1]).
-export([action_data_new/0,action_data_from_binary/1,action_data_to_binary/1]).
-export([finsh_player_new/0,finsh_player_from_binary/1,finsh_player_to_binary/1]).
-export([field_data_new/0,field_data_from_binary/1,field_data_to_binary/1]).
-export([advanced_option_list_new/0,advanced_option_list_from_binary/1,advanced_option_list_to_binary/1]).
-export([sg_card_info_new/0,sg_card_info_from_binary/1,sg_card_info_to_binary/1]).
-export([sg_card_list_new/0,sg_card_list_from_binary/1,sg_card_list_to_binary/1]).
-export([prepare_list_new/0,prepare_list_from_binary/1,prepare_list_to_binary/1]).
-export([score_list_new/0,score_list_from_binary/1,score_list_to_binary/1]).
-export([xiazhu_list_new/0,xiazhu_list_from_binary/1,xiazhu_list_to_binary/1]).
-export([fighting_record_info_new/0,fighting_record_info_from_binary/1,fighting_record_info_to_binary/1]).
-export([player_fighting_list_new/0,player_fighting_list_from_binary/1,player_fighting_list_to_binary/1]).
-export([everytimes_fighting_info_new/0,everytimes_fighting_info_from_binary/1,everytimes_fighting_info_to_binary/1]).
-export([jinhua_card_info_new/0,jinhua_card_info_from_binary/1,jinhua_card_info_to_binary/1]).
-export([group_list_info_new/0,group_list_info_from_binary/1,group_list_info_to_binary/1]).

wait_player_new()->#pt_public_wait_player{}.
wait_player_from_binary(Binary) -> 
	{Binary1,Data1} = lib_protocol:from_binary(Binary,uint32),
	{Binary2,Data2} = lib_protocol:from_binary(Binary1,string),
	{Binary3,Data3} = lib_protocol:from_binary(Binary2,string),
	{Binary4,Data4} = lib_protocol:from_binary(Binary3,uint8),
	{Binary5,Data5} = lib_protocol:from_binary(Binary4,string),
	{Binary6,Data6} = lib_protocol:from_binary(Binary5,uint8),
	{Binary7,Data7} = lib_protocol:from_binary(Binary6,uint8),
	{LastBinary,Data8} = lib_protocol:from_binary(Binary7,int32),
	{ok,LastBinary,#pt_public_wait_player{
		acc_id = Data1,
		name = Data2,
		head = Data3,
		sex = Data4,
		ip = Data5,
		pos = Data6,
		prepare_state = Data7,
		cur_score = Data8
	}}.
wait_player_to_binary(Pt) -> 
	Data1 = lib_protocol:to_binary(Pt#pt_public_wait_player.acc_id,uint32),
	Data2 = lib_protocol:to_binary(Pt#pt_public_wait_player.name,string),
	Data3 = lib_protocol:to_binary(Pt#pt_public_wait_player.head,string),
	Data4 = lib_protocol:to_binary(Pt#pt_public_wait_player.sex,uint8),
	Data5 = lib_protocol:to_binary(Pt#pt_public_wait_player.ip,string),
	Data6 = lib_protocol:to_binary(Pt#pt_public_wait_player.pos,uint8),
	Data7 = lib_protocol:to_binary(Pt#pt_public_wait_player.prepare_state,uint8),
	Data8 = lib_protocol:to_binary(Pt#pt_public_wait_player.cur_score,int32),
	<<Data1/binary,Data2/binary,Data3/binary,Data4/binary,Data5/binary,Data6/binary,Data7/binary,Data8/binary>>.

game_player_new()->#pt_public_game_player{}.
game_player_from_binary(Binary) -> 
	{Binary1,Data1} = lib_protocol:from_binary(Binary,uint8),
	{Binary2,Data2} = lib_protocol:from_binary(Binary1,uint32),
	{Binary3,Data3} = lib_protocol:from_binary(Binary2,string),
	{Binary4,Data4} = lib_protocol:from_binary(Binary3,string),
	{Binary5,Data5} = lib_protocol:from_binary(Binary4,uint8),
	{Binary6,Data6} = lib_protocol:from_binary(Binary5,string),
	{Binary7,Data7} = lib_protocol:from_binary(Binary6,int32),
	{Binary8,Data8} = lib_protocol:from_binary(Binary7,{list,uint16}),
	{Binary9,Data9} = lib_protocol:from_binary(Binary8,{list,field_data_from_binary}),
	{Binary10,Data10} = lib_protocol:from_binary(Binary9,{list,uint16}),
	{LastBinary,Data11} = lib_protocol:from_binary(Binary10,{list,action_data_from_binary}),
	{ok,LastBinary,#pt_public_game_player{
		index = Data1,
		acc_id = Data2,
		name = Data3,
		head = Data4,
		sex = Data5,
		ip = Data6,
		score = Data7,
		qps = Data8,
		fields = Data9,
		outs = Data10,
		actions = Data11
	}}.
game_player_to_binary(Pt) -> 
	Data1 = lib_protocol:to_binary(Pt#pt_public_game_player.index,uint8),
	Data2 = lib_protocol:to_binary(Pt#pt_public_game_player.acc_id,uint32),
	Data3 = lib_protocol:to_binary(Pt#pt_public_game_player.name,string),
	Data4 = lib_protocol:to_binary(Pt#pt_public_game_player.head,string),
	Data5 = lib_protocol:to_binary(Pt#pt_public_game_player.sex,uint8),
	Data6 = lib_protocol:to_binary(Pt#pt_public_game_player.ip,string),
	Data7 = lib_protocol:to_binary(Pt#pt_public_game_player.score,int32),
	Data8 = lib_protocol:to_binary(Pt#pt_public_game_player.qps,{list,uint16}),
	Data9 = lib_protocol:to_binary(Pt#pt_public_game_player.fields,{list,field_data_to_binary}),
	Data10 = lib_protocol:to_binary(Pt#pt_public_game_player.outs,{list,uint16}),
	Data11 = lib_protocol:to_binary(Pt#pt_public_game_player.actions,{list,action_data_to_binary}),
	<<Data1/binary,Data2/binary,Data3/binary,Data4/binary,Data5/binary,Data6/binary,Data7/binary,Data8/binary,Data9/binary,Data10/binary,Data11/binary>>.

action_data_new()->#pt_public_action_data{}.
action_data_from_binary(Binary) -> 
	{Binary1,Data1} = lib_protocol:from_binary(Binary,uint8),
	{Binary2,Data2} = lib_protocol:from_binary(Binary1,uint16),
	{Binary3,Data3} = lib_protocol:from_binary(Binary2,uint16),
	{Binary4,Data4} = lib_protocol:from_binary(Binary3,uint16),
	{Binary5,Data5} = lib_protocol:from_binary(Binary4,uint16),
	{LastBinary,Data6} = lib_protocol:from_binary(Binary5,uint32),
	{ok,LastBinary,#pt_public_action_data{
		action = Data1,
		action_data1 = Data2,
		action_data2 = Data3,
		action_data3 = Data4,
		action_data4 = Data5,
		del_field = Data6
	}}.
action_data_to_binary(Pt) -> 
	Data1 = lib_protocol:to_binary(Pt#pt_public_action_data.action,uint8),
	Data2 = lib_protocol:to_binary(Pt#pt_public_action_data.action_data1,uint16),
	Data3 = lib_protocol:to_binary(Pt#pt_public_action_data.action_data2,uint16),
	Data4 = lib_protocol:to_binary(Pt#pt_public_action_data.action_data3,uint16),
	Data5 = lib_protocol:to_binary(Pt#pt_public_action_data.action_data4,uint16),
	Data6 = lib_protocol:to_binary(Pt#pt_public_action_data.del_field,uint32),
	<<Data1/binary,Data2/binary,Data3/binary,Data4/binary,Data5/binary,Data6/binary>>.

finsh_player_new()->#pt_public_finsh_player{}.
finsh_player_from_binary(Binary) -> 
	{Binary1,Data1} = lib_protocol:from_binary(Binary,uint32),
	{Binary2,Data2} = lib_protocol:from_binary(Binary1,uint32),
	{Binary3,Data3} = lib_protocol:from_binary(Binary2,string),
	{Binary4,Data4} = lib_protocol:from_binary(Binary3,string),
	{Binary5,Data5} = lib_protocol:from_binary(Binary4,uint8),
	{Binary6,Data6} = lib_protocol:from_binary(Binary5,string),
	{Binary7,Data7} = lib_protocol:from_binary(Binary6,int32),
	{Binary8,Data8} = lib_protocol:from_binary(Binary7,int32),
	{Binary9,Data9} = lib_protocol:from_binary(Binary8,uint8),
	{Binary10,Data10} = lib_protocol:from_binary(Binary9,string),
	{Binary11,Data11} = lib_protocol:from_binary(Binary10,{list,uint16}),
	{Binary12,Data12} = lib_protocol:from_binary(Binary11,{list,field_data_from_binary}),
	{LastBinary,Data13} = lib_protocol:from_binary(Binary12,uint16),
	{ok,LastBinary,#pt_public_finsh_player{
		index = Data1,
		acc_id = Data2,
		name = Data3,
		head = Data4,
		sex = Data5,
		ip = Data6,
		end_score = Data7,
		chg_score = Data8,
		hu = Data9,
		des = Data10,
		qps = Data11,
		fields = Data12,
		in_qp = Data13
	}}.
finsh_player_to_binary(Pt) -> 
	Data1 = lib_protocol:to_binary(Pt#pt_public_finsh_player.index,uint32),
	Data2 = lib_protocol:to_binary(Pt#pt_public_finsh_player.acc_id,uint32),
	Data3 = lib_protocol:to_binary(Pt#pt_public_finsh_player.name,string),
	Data4 = lib_protocol:to_binary(Pt#pt_public_finsh_player.head,string),
	Data5 = lib_protocol:to_binary(Pt#pt_public_finsh_player.sex,uint8),
	Data6 = lib_protocol:to_binary(Pt#pt_public_finsh_player.ip,string),
	Data7 = lib_protocol:to_binary(Pt#pt_public_finsh_player.end_score,int32),
	Data8 = lib_protocol:to_binary(Pt#pt_public_finsh_player.chg_score,int32),
	Data9 = lib_protocol:to_binary(Pt#pt_public_finsh_player.hu,uint8),
	Data10 = lib_protocol:to_binary(Pt#pt_public_finsh_player.des,string),
	Data11 = lib_protocol:to_binary(Pt#pt_public_finsh_player.qps,{list,uint16}),
	Data12 = lib_protocol:to_binary(Pt#pt_public_finsh_player.fields,{list,field_data_to_binary}),
	Data13 = lib_protocol:to_binary(Pt#pt_public_finsh_player.in_qp,uint16),
	<<Data1/binary,Data2/binary,Data3/binary,Data4/binary,Data5/binary,Data6/binary,Data7/binary,Data8/binary,Data9/binary,Data10/binary,Data11/binary,Data12/binary,Data13/binary>>.

field_data_new()->#pt_public_field_data{}.
field_data_from_binary(Binary) -> 
	{Binary1,Data1} = lib_protocol:from_binary(Binary,uint32),
	{Binary2,Data2} = lib_protocol:from_binary(Binary1,uint8),
	{LastBinary,Data3} = lib_protocol:from_binary(Binary2,uint16),
	{ok,LastBinary,#pt_public_field_data{
		id = Data1,
		sort = Data2,
		data = Data3
	}}.
field_data_to_binary(Pt) -> 
	Data1 = lib_protocol:to_binary(Pt#pt_public_field_data.id,uint32),
	Data2 = lib_protocol:to_binary(Pt#pt_public_field_data.sort,uint8),
	Data3 = lib_protocol:to_binary(Pt#pt_public_field_data.data,uint16),
	<<Data1/binary,Data2/binary,Data3/binary>>.

advanced_option_list_new()->#pt_public_advanced_option_list{}.
advanced_option_list_from_binary(Binary) -> 
	{Binary1,Data1} = lib_protocol:from_binary(Binary,uint8),
	{LastBinary,Data2} = lib_protocol:from_binary(Binary1,uint8),
	{ok,LastBinary,#pt_public_advanced_option_list{
		option_1 = Data1,
		option_2 = Data2
	}}.
advanced_option_list_to_binary(Pt) -> 
	Data1 = lib_protocol:to_binary(Pt#pt_public_advanced_option_list.option_1,uint8),
	Data2 = lib_protocol:to_binary(Pt#pt_public_advanced_option_list.option_2,uint8),
	<<Data1/binary,Data2/binary>>.

sg_card_info_new()->#pt_public_sg_card_info{}.
sg_card_info_from_binary(Binary) -> 
	{Binary1,Data1} = lib_protocol:from_binary(Binary,uint32),
	{Binary2,Data2} = lib_protocol:from_binary(Binary1,{list,sg_card_list_from_binary}),
	{Binary3,Data3} = lib_protocol:from_binary(Binary2,uint8),
	{Binary4,Data4} = lib_protocol:from_binary(Binary3,uint8),
	{LastBinary,Data5} = lib_protocol:from_binary(Binary4,uint8),
	{ok,LastBinary,#pt_public_sg_card_info{
		aid = Data1,
		card_list = Data2,
		card_type = Data3,
		card_multiple = Data4,
		card_dian_shu = Data5
	}}.
sg_card_info_to_binary(Pt) -> 
	Data1 = lib_protocol:to_binary(Pt#pt_public_sg_card_info.aid,uint32),
	Data2 = lib_protocol:to_binary(Pt#pt_public_sg_card_info.card_list,{list,sg_card_list_to_binary}),
	Data3 = lib_protocol:to_binary(Pt#pt_public_sg_card_info.card_type,uint8),
	Data4 = lib_protocol:to_binary(Pt#pt_public_sg_card_info.card_multiple,uint8),
	Data5 = lib_protocol:to_binary(Pt#pt_public_sg_card_info.card_dian_shu,uint8),
	<<Data1/binary,Data2/binary,Data3/binary,Data4/binary,Data5/binary>>.

sg_card_list_new()->#pt_public_sg_card_list{}.
sg_card_list_from_binary(Binary) -> 
	{Binary1,Data1} = lib_protocol:from_binary(Binary,uint8),
	{LastBinary,Data2} = lib_protocol:from_binary(Binary1,uint8),
	{ok,LastBinary,#pt_public_sg_card_list{
		color = Data1,
		val = Data2
	}}.
sg_card_list_to_binary(Pt) -> 
	Data1 = lib_protocol:to_binary(Pt#pt_public_sg_card_list.color,uint8),
	Data2 = lib_protocol:to_binary(Pt#pt_public_sg_card_list.val,uint8),
	<<Data1/binary,Data2/binary>>.

prepare_list_new()->#pt_public_prepare_list{}.
prepare_list_from_binary(Binary) -> 
	{Binary1,Data1} = lib_protocol:from_binary(Binary,uint32),
	{LastBinary,Data2} = lib_protocol:from_binary(Binary1,uint8),
	{ok,LastBinary,#pt_public_prepare_list{
		aid = Data1,
		prepare_state = Data2
	}}.
prepare_list_to_binary(Pt) -> 
	Data1 = lib_protocol:to_binary(Pt#pt_public_prepare_list.aid,uint32),
	Data2 = lib_protocol:to_binary(Pt#pt_public_prepare_list.prepare_state,uint8),
	<<Data1/binary,Data2/binary>>.

score_list_new()->#pt_public_score_list{}.
score_list_from_binary(Binary) -> 
	{Binary1,Data1} = lib_protocol:from_binary(Binary,uint32),
	{Binary2,Data2} = lib_protocol:from_binary(Binary1,int32),
	{LastBinary,Data3} = lib_protocol:from_binary(Binary2,int32),
	{ok,LastBinary,#pt_public_score_list{
		aid = Data1,
		score = Data2,
		amount_score = Data3
	}}.
score_list_to_binary(Pt) -> 
	Data1 = lib_protocol:to_binary(Pt#pt_public_score_list.aid,uint32),
	Data2 = lib_protocol:to_binary(Pt#pt_public_score_list.score,int32),
	Data3 = lib_protocol:to_binary(Pt#pt_public_score_list.amount_score,int32),
	<<Data1/binary,Data2/binary,Data3/binary>>.

xiazhu_list_new()->#pt_public_xiazhu_list{}.
xiazhu_list_from_binary(Binary) -> 
	{Binary1,Data1} = lib_protocol:from_binary(Binary,uint32),
	{LastBinary,Data2} = lib_protocol:from_binary(Binary1,uint32),
	{ok,LastBinary,#pt_public_xiazhu_list{
		aid = Data1,
		score = Data2
	}}.
xiazhu_list_to_binary(Pt) -> 
	Data1 = lib_protocol:to_binary(Pt#pt_public_xiazhu_list.aid,uint32),
	Data2 = lib_protocol:to_binary(Pt#pt_public_xiazhu_list.score,uint32),
	<<Data1/binary,Data2/binary>>.

fighting_record_info_new()->#pt_public_fighting_record_info{}.
fighting_record_info_from_binary(Binary) -> 
	{Binary1,Data1} = lib_protocol:from_binary(Binary,uint32),
	{Binary2,Data2} = lib_protocol:from_binary(Binary1,uint8),
	{Binary3,Data3} = lib_protocol:from_binary(Binary2,uint8),
	{Binary4,Data4} = lib_protocol:from_binary(Binary3,uint8),
	{Binary5,Data5} = lib_protocol:from_binary(Binary4,uint8),
	{Binary6,Data6} = lib_protocol:from_binary(Binary5,uint32),
	{Binary7,Data7} = lib_protocol:from_binary(Binary6,{list,player_fighting_list_from_binary}),
	{LastBinary,Data8} = lib_protocol:from_binary(Binary7,uint8),
	{ok,LastBinary,#pt_public_fighting_record_info{
		room_id = Data1,
		game_times = Data2,
		under_score = Data3,
		room_type = Data4,
		ply_mode = Data5,
		last_time = Data6,
		player_fighting_list = Data7,
		fighting_record_id = Data8
	}}.
fighting_record_info_to_binary(Pt) -> 
	Data1 = lib_protocol:to_binary(Pt#pt_public_fighting_record_info.room_id,uint32),
	Data2 = lib_protocol:to_binary(Pt#pt_public_fighting_record_info.game_times,uint8),
	Data3 = lib_protocol:to_binary(Pt#pt_public_fighting_record_info.under_score,uint8),
	Data4 = lib_protocol:to_binary(Pt#pt_public_fighting_record_info.room_type,uint8),
	Data5 = lib_protocol:to_binary(Pt#pt_public_fighting_record_info.ply_mode,uint8),
	Data6 = lib_protocol:to_binary(Pt#pt_public_fighting_record_info.last_time,uint32),
	Data7 = lib_protocol:to_binary(Pt#pt_public_fighting_record_info.player_fighting_list,{list,player_fighting_list_to_binary}),
	Data8 = lib_protocol:to_binary(Pt#pt_public_fighting_record_info.fighting_record_id,uint8),
	<<Data1/binary,Data2/binary,Data3/binary,Data4/binary,Data5/binary,Data6/binary,Data7/binary,Data8/binary>>.

player_fighting_list_new()->#pt_public_player_fighting_list{}.
player_fighting_list_from_binary(Binary) -> 
	{Binary1,Data1} = lib_protocol:from_binary(Binary,uint32),
	{Binary2,Data2} = lib_protocol:from_binary(Binary1,string),
	{Binary3,Data3} = lib_protocol:from_binary(Binary2,uint8),
	{LastBinary,Data4} = lib_protocol:from_binary(Binary3,int32),
	{ok,LastBinary,#pt_public_player_fighting_list{
		aid = Data1,
		name = Data2,
		room_owner = Data3,
		amount_score = Data4
	}}.
player_fighting_list_to_binary(Pt) -> 
	Data1 = lib_protocol:to_binary(Pt#pt_public_player_fighting_list.aid,uint32),
	Data2 = lib_protocol:to_binary(Pt#pt_public_player_fighting_list.name,string),
	Data3 = lib_protocol:to_binary(Pt#pt_public_player_fighting_list.room_owner,uint8),
	Data4 = lib_protocol:to_binary(Pt#pt_public_player_fighting_list.amount_score,int32),
	<<Data1/binary,Data2/binary,Data3/binary,Data4/binary>>.

everytimes_fighting_info_new()->#pt_public_everytimes_fighting_info{}.
everytimes_fighting_info_from_binary(Binary) -> 
	{Binary1,Data1} = lib_protocol:from_binary(Binary,uint8),
	{Binary2,Data2} = lib_protocol:from_binary(Binary1,uint32),
	{Binary3,Data3} = lib_protocol:from_binary(Binary2,string),
	{Binary4,Data4} = lib_protocol:from_binary(Binary3,int32),
	{Binary5,Data5} = lib_protocol:from_binary(Binary4,uint8),
	{Binary6,Data6} = lib_protocol:from_binary(Binary5,uint8),
	{Binary7,Data7} = lib_protocol:from_binary(Binary6,uint8),
	{LastBinary,Data8} = lib_protocol:from_binary(Binary7,{list,sg_card_list_from_binary}),
	{ok,LastBinary,#pt_public_everytimes_fighting_info{
		inning = Data1,
		aid = Data2,
		name = Data3,
		score = Data4,
		zhuang_state = Data5,
		xia_zhua_score = Data6,
		dian_shu = Data7,
		card_list = Data8
	}}.
everytimes_fighting_info_to_binary(Pt) -> 
	Data1 = lib_protocol:to_binary(Pt#pt_public_everytimes_fighting_info.inning,uint8),
	Data2 = lib_protocol:to_binary(Pt#pt_public_everytimes_fighting_info.aid,uint32),
	Data3 = lib_protocol:to_binary(Pt#pt_public_everytimes_fighting_info.name,string),
	Data4 = lib_protocol:to_binary(Pt#pt_public_everytimes_fighting_info.score,int32),
	Data5 = lib_protocol:to_binary(Pt#pt_public_everytimes_fighting_info.zhuang_state,uint8),
	Data6 = lib_protocol:to_binary(Pt#pt_public_everytimes_fighting_info.xia_zhua_score,uint8),
	Data7 = lib_protocol:to_binary(Pt#pt_public_everytimes_fighting_info.dian_shu,uint8),
	Data8 = lib_protocol:to_binary(Pt#pt_public_everytimes_fighting_info.card_list,{list,sg_card_list_to_binary}),
	<<Data1/binary,Data2/binary,Data3/binary,Data4/binary,Data5/binary,Data6/binary,Data7/binary,Data8/binary>>.

jinhua_card_info_new()->#pt_public_jinhua_card_info{}.
jinhua_card_info_from_binary(Binary) -> 
	{Binary1,Data1} = lib_protocol:from_binary(Binary,uint32),
	{Binary2,Data2} = lib_protocol:from_binary(Binary1,int32),
	{LastBinary,Data3} = lib_protocol:from_binary(Binary2,int8),
	{ok,LastBinary,#pt_public_jinhua_card_info{
		aid = Data1,
		score = Data2,
		card_type = Data3
	}}.
jinhua_card_info_to_binary(Pt) -> 
	Data1 = lib_protocol:to_binary(Pt#pt_public_jinhua_card_info.aid,uint32),
	Data2 = lib_protocol:to_binary(Pt#pt_public_jinhua_card_info.score,int32),
	Data3 = lib_protocol:to_binary(Pt#pt_public_jinhua_card_info.card_type,int8),
	<<Data1/binary,Data2/binary,Data3/binary>>.

group_list_info_new()->#pt_public_group_list_info{}.
group_list_info_from_binary(Binary) -> 
	{Binary1,Data1} = lib_protocol:from_binary(Binary,uint32),
	{Binary2,Data2} = lib_protocol:from_binary(Binary1,uint32),
	{Binary3,Data3} = lib_protocol:from_binary(Binary2,string),
	{Binary4,Data4} = lib_protocol:from_binary(Binary3,uint8),
	{Binary5,Data5} = lib_protocol:from_binary(Binary4,uint8),
	{Binary6,Data6} = lib_protocol:from_binary(Binary5,uint8),
	{Binary7,Data7} = lib_protocol:from_binary(Binary6,uint32),
	{Binary8,Data8} = lib_protocol:from_binary(Binary7,uint8),
	{Binary9,Data9} = lib_protocol:from_binary(Binary8,uint8),
	{Binary10,Data10} = lib_protocol:from_binary(Binary9,uint8),
	{LastBinary,Data11} = lib_protocol:from_binary(Binary10,uint8),
	{ok,LastBinary,#pt_public_group_list_info{
		room_id = Data1,
		group_id = Data2,
		group_name = Data3,
		population = Data4,
		model = Data5,
		score = Data6,
		times = Data7,
		room_rate = Data8,
		ply_mode = Data9,
		option_1 = Data10,
		option_2 = Data11
	}}.
group_list_info_to_binary(Pt) -> 
	Data1 = lib_protocol:to_binary(Pt#pt_public_group_list_info.room_id,uint32),
	Data2 = lib_protocol:to_binary(Pt#pt_public_group_list_info.group_id,uint32),
	Data3 = lib_protocol:to_binary(Pt#pt_public_group_list_info.group_name,string),
	Data4 = lib_protocol:to_binary(Pt#pt_public_group_list_info.population,uint8),
	Data5 = lib_protocol:to_binary(Pt#pt_public_group_list_info.model,uint8),
	Data6 = lib_protocol:to_binary(Pt#pt_public_group_list_info.score,uint8),
	Data7 = lib_protocol:to_binary(Pt#pt_public_group_list_info.times,uint32),
	Data8 = lib_protocol:to_binary(Pt#pt_public_group_list_info.room_rate,uint8),
	Data9 = lib_protocol:to_binary(Pt#pt_public_group_list_info.ply_mode,uint8),
	Data10 = lib_protocol:to_binary(Pt#pt_public_group_list_info.option_1,uint8),
	Data11 = lib_protocol:to_binary(Pt#pt_public_group_list_info.option_2,uint8),
	<<Data1/binary,Data2/binary,Data3/binary,Data4/binary,Data5/binary,Data6/binary,Data7/binary,Data8/binary,Data9/binary,Data10/binary,Data11/binary>>.

